<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>配资审核</title>

<link rel="stylesheet" type="text/css" href="${ctx}/resources/media/css/bootstrap-wysihtml5.css" />
<link rel="stylesheet" type="text/css"	href="${ctx}/resources/media/css/select2_metro.css" />

<link rel="stylesheet" type="text/css" href="${ctx}/resources/media/css/datetimepicker.css" />
<link rel="stylesheet" type="text/css" href="${ctx}/resources/media/css/bootstrap-fileupload.css" />
<script type="text/javascript" src="${ctx}/resources/media/js/bootstrap-fileupload.js"></script>
<link href="${ctx}/resources/media/css/jquery.fancybox.css" rel="stylesheet" />
<link href="${ctx}/resources/media/css/chosen.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="row-fluid profile">
		<div class="span12">
			<!--BEGIN TABS-->
			<div class="tabbable tabbable-custom tabbable-full-width">
				<ul class="nav nav-tabs">
					<li><a href="${ctx}/financing/meili">产品列表</a></li>
					<li class="active"><a href="${ctx}/financing/meili/form">产品修改</a></li>
				</ul>
				<div class="tab-content">
					<!--end tab-pane-->
					<div class="tab-pane profile-classic row-fluid active" id="tab_1_2">
						<div class="span12">
							<!-- BEGIN SAMPLE FORM PORTLET-->
							<div class="portlet box blue">
								<div class="portlet-title">
									<div class="caption">
										<i class="icon-reorder"></i> <span class="hidden-480">产品修改</span>
									</div>
								</div>
								<!-- END SAMPLE FORM PORTLET-->
								<div class="portlet-body form ">
									<form class="form-horizontal" id="form" action="${ctx}/financing/meili/save" enctype="multipart/form-data" method="post">
										<fieldset>
											<input type="hidden" name="id"  value="${financing.id }">
											<input type="hidden" name="version"  value="${financing.version }">
											<input type="hidden" id="status"  value="${financing.status }">
											<h4 class="form-section">产品信息</h4>
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">编号</label>
														<div class="controls">
															<input type="text" id="code" name="code"
																class="m-wrap input-xlarge" value="${financing.code }"
																readonly="readonly"> <span class="help-inline"></span>
														</div>
													</div>
												</div>
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">标题</label>
														<div class="controls">
															<input type="text" id="title" name="title" class="m-wrap input-xlarge" value="${financing.title }" maxlength="100" />
															<p class="help-block"></p>
														</div>
													</div>
												</div>
											</div>
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">投资期限(月)</label>
														<div class="controls">
															<input type="text" id="term" name="term"
																class="m-wrap input-xlarge" value="${financing.term }" maxlength="2" /> <span
																class="help-inline"></span>
														</div>
													</div>
												</div>
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">收益方式</label>
														<div class="controls">
															<input type="text" name="profitType" id="profitType"
																class="m-wrap input-xlarge" value="${financing.profitType }" />
															<p class="help-block"></p>
														</div>
													</div>
												</div>
											</div>
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">返现金额</label>
														<div class="controls">
															<input type="text" name="refundAmount"
																class="m-wrap input-xlarge" value="${attribute.refundAmount }" maxlength="11" />
															<p class="help-block"></p>
														</div>
													</div>
												</div>
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">投资金额(单价)</label>
														<div class="controls">
															<input type="text" name="amount" id="amount"
																class="m-wrap input-xlarge" value="${financing.amount }" maxlength="11" />
															<p class="help-block"></p>
														</div>
													</div>
												</div>
											</div>
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">数量</label>
														<div class="controls">
															<input type="text" id="count" name="count"
																class="m-wrap input-xlarge" value="${financing.count }" maxlength="7" /> <span
																class="help-inline"></span>
														</div>
													</div>
												</div>

											</div>		
											
											
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">使用期限</label>
														<div class="controls">
															<input type="text" id="timeLimit" name="timeLimit"
																class="m-wrap input-xlarge" value="${attribute.timeLimit }" maxlength="100"> <span
																class="help-inline"></span>
														</div>
													</div>
												</div>
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">服务承诺</label>
														<div class="controls">
															<input type="text" name="promise" id="promise"
																class="m-wrap input-xlarge" value="${attribute.promise }" maxlength="200">
															<p class="help-block"></p>
														</div>
													</div>
												</div>
											</div>
											
											<div class="row-fluid">
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">购买协议标题</label>
														<div class="controls">
															<input type="text" id="agreementTitle" name="agreementTitle"
																class="m-wrap input-xlarge" value="${attribute.agreementTitle }" maxlength="44"> <span
																class="help-inline"></span>
														</div>
													</div>
												</div>
												<div class="span6">
													<div class="control-group">

														<!-- Text input-->
														<label class="control-label">购买协议URL</label>
														<div class="controls">
															<input type="text" name="agreementUrl" id="agreementUrl"
																class="m-wrap input-xlarge" value="${attribute.agreementUrl }" maxlength="500">
															<p class="help-block"></p>
														</div>
													</div>
												</div>
											</div>
											
											
												<div class="row-fluid">	
												<div class="span6">
													<div class="control-group">
														<!-- Text input-->
														<label class="control-label">开始时间</label>
														<div class="controls">
															<div class="input-append date form_meridian_datetime">
																<input size="16" type="text" id="start_time"
																	name="startTime"  value='<fmt:formatDate value="${financing.startTime }" pattern="yyyy-MM-dd HH:mm" />'  class="m-wrap" >
																<span class="add-on"><i class="icon-remove"></i></span>
																<span class="add-on"><i class="icon-calendar"></i></span>
															</div>
														</div>
													</div>
												</div>
												<div class="span6">
													<div class="control-group">
														<!-- Text input-->
														<label class="control-label">结束时间</label>
														<div class="controls">
															<div class="input-append date form_meridian_datetime">
																<input size="16" type="text" id="end_time"
																	name="endTime" value='<fmt:formatDate value="${financing.endTime }" pattern="yyyy-MM-dd HH:mm" />'  class="m-wrap">
																<span class="add-on"><i class="icon-remove"></i></span>
																<span class="add-on"><i class="icon-calendar"></i></span>
															</div>
														</div>
													</div>
												</div>
												
											</div>
										
							
											<div class="row-fluid">
												<div class="control-group">
													<!-- Text input-->
													<label class="control-label" for="input01">产品说明</label>
													<div class="controls">
														<textarea class="wysihtml5 m-wrap" style="width: 1100px"
															name="description" id="description" rows="6">${financing.description }</textarea>
														<p class="help-block"></p>
													</div>
												</div>
											</div>
																			
											<div class="row-fluid">
												<div class="control-group">
													<!-- Text input-->
													<label class="control-label" for="input01">使用说明</label>
													<div class="controls">
														<textarea class="wysihtml5 m-wrap" style="width: 1100px"
															name="useGuide" id="useGuide" rows="6" >${attribute.useGuide }</textarea>
														<p class="help-block"></p>
													</div>
												</div>
											</div>
											
											
										</fieldset>
										<div class="form-actions">
											<button type="submit" class="btn blue ibtsubmit">
												<i class="icon-ok"></i> 保存
											</button>
											<button type="button" onclick="history.go(-1)" class="btn">取消</button>
										</div>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!--END TABS-->
			</div>
		</div>
	</div>
	<script type="text/javascript"
		src="${ctx}/resources/media/js/jquery.dataTables.js"></script>
	<script type="text/javascript"
		src="${ctx}/resources/media/js/DT_bootstrap.js"></script>
	<script type="text/javascript"
		src="${ctx}/resources/media/js/select2.min.js"></script>
	<script type="text/javascript"
		src="${ctx}/resources/media/js/wysihtml5-0.3.0.js"></script>
	<script type="text/javascript"
		src="${ctx}/resources/media/js/bootstrap-wysihtml5.js"></script>
	<script type="text/javascript"
		src="${ctx}/resources/media/js/bootstrap-datetimepicker.js"></script>
	<script type="text/javascript"
		src="${ctx}/resources/media/js/form-wizard.js"></script>
	<script type="text/javascript"
		src="${ctx}/resources/media/js/jquery.validate.min.js"></script>
		
	<script src="${ctx}/resources/media/js/jquery.fancybox.pack.js"></script>
	<script type="text/javascript" src="${ctx}/resources/media/js/chosen.jquery.min.js"></script>
	<script src="${ctx}/resources/media/js/app.js"></script>
	<script src="${ctx}/resources/media/js/gallery.js"></script>
	
	<script type="text/javascript">
		$(function() {

			$("select").select2();
			FormWizard.init();
			Gallery.init();
			if ($('.wysihtml5').size() > 0) {
				$('.wysihtml5').wysihtml5({});
			}

			$(".form_meridian_datetime").datetimepicker(
					{
						format : "yyyy-m-d h:i",
						//showMeridian: true,
						language : "zh",
						autoclose : true,
						pickerPosition : (App.isRTL() ? "bottom-right"
								: "bottom-left"),
						todayBtn : true
					});

		});
	</script>


</body>
</html>